<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<script src="/wondershare/js/utils.js"></script> 
<script src="/wondershare/js/topic.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function selectId( obj, id ){
	var ret = $(obj).attr('checked') ? parent.selectRelatedArticle( id, 1 ) : parent.selectRelatedArticle( id, 0 );
	
	if( !ret ){
		$(obj).attr('checked', '');	
	}
}

$(function(){
	$("#tr_<{$hide_ar_id}> :input").attr('disabled','disabled');	
})
</script>
</head>
<body >

<form id="myform" name="myform" method="POST" action="/wondershare/article.php?action=index&w_type=<{$w_type}>">
        <!-- 分类 -->
    &nbsp;&nbsp;主分类：<select name="cat_id" style="width:100px;"><option value="0">所有分类</option>
	<{$cat_select}>
	</select>
    <!-- 推荐 -->
    推荐否：<select name="is_recommend"><option value="0" <{if $is_recommend == 0}> selected="selected" <{/if}> >全部</option>
	<option value="1" <{if $is_recommend == 1}> selected="selected" <{/if}> >推荐</option>
	<option value="2" <{if $is_recommend == 2}> selected="selected" <{/if}> > 未推荐</option></select>       
      <!-- 热门 -->
     热门否： <select name="is_hot">
	 <option value="0" <{if $is_hot == 0}> selected="selected" <{/if}> >全部</option>
	 <option value="1" <{if $is_hot == 1}> selected="selected" <{/if}> >热门文章</option>
	 <option value="2" <{if $is_hot == 2}> selected="selected" <{/if}> >一般文章</option></select>
            <!-- 上架 -->
     <!-- <select name="is_delete"><option value="">全部</option><option value="1">删除</option><option value="2">未删除</option></select>-->
        <!-- 关键字 -->
    
    ID：<input type="text" size="5" name="ar_id" value="<{$ar_id}>">
     <select name="keyword_type">
	 <option value="ar_title" <{if $keyword_type == 'ar_title'}> selected="selected" <{/if}> >文章标题</option>
	 <option value="template_url" <{if $keyword_type == 'template_url'}> selected="selected" <{/if}> >模版url</option></select>
	<input type="text" size="25" name="keyword" value="<{$keyword|escape}>">
    修改人：<select name="update_user" style="width:80px;">
    <option value="">所有</option>
    <{foreach from=$update_user item=v}>
    <option value="<{$v}>" <{if $user == $v}>selected="selected"<{/if}> ><{$v}></option>
    <{/foreach}>
    </select>
    生成状态：<select name="pub_status" style="width:80px;">
    	<option value="0">全部</option>
        <option value="1" <{if $pub_status == 1}>selected="selected"<{/if}>>已生成html</option>
        <option value="2" <{if $pub_status == 2}>selected="selected"<{/if}>>未生成html</option>
    </select>
	<input type="hidden" name="tag_id" value="<{$tag_id}>" />
	<input type="hidden" name="del_list" value="<{$del_list}>" />
    <input type="submit" class="button" name="search" value=" 搜索 ">
    <input type="hidden" name="sortby" id="sortby" value="<{$sortby}>" />
    <input type="hidden" name="sort" id="sort" value="<{$sort}>"/> 
    <input type="hidden" name="forselect" id="forselect" value="1"/>
    <input type="hidden" name="selected" value="<{$selected}>"/>
    <input type="hidden" name="hide_ar_id" value="<{$hide_ar_id}>"/>
    <input type="hidden" name="limit" value="10" />
</form>



<table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="list-div">
<tbody>
  <tr>
    <th align="center" width="60">ID</th>
    <th>文章标题</th>
	<th width="60">是否有图</th>
	<th width="40">推荐</th>
	<th width="40">热门</th>
    <th width="80">修改人</th>
	<th width="80">生成状态</th>
  </tr>
  <{foreach from=$art_info item=art}>
  <tr align="center" id="tr_<{$art.ar_id}>">
    <td align="center"  >
    <input value="<{$art.ar_id}>" name="ID[]" type="checkbox" onclick="selectId(this, <{$art.ar_id}>)" <{if $art.ar_id|in_array:$selected_arr}>checked="checked"<{/if}> /><{$art.ar_id}> </td>
	
	<td align="left" id="td_title_<{$art.ar_id}>">
	<span id="title_<{$art.ar_id}>"><{$art.ar_title|escape}></span>
	</td>
		
    <td align="center">
	<{if $art.ar_image !=''}>有<{else}> 无
	 <{/if}> 
	</td>
	
	<td align="center">
	<img id="recommend_<{$art.ar_id}>" <{if $art.is_recommend == 1}> src="/wondershare/images/yes.gif" <{else}> 
	src="/wondershare/images/no.gif" <{/if}> />
	</td>
	
	<td align="center">
	<img id="hot_<{$art.ar_id}>" <{if $art.is_hot == 1}> src="/wondershare/images/yes.gif" <{else}> 
	src="/wondershare/images/no.gif" <{/if}> />
	</td>
    <td><{if $art.update_user == '' }> <{$art.add_user}> <{else}> <{$art.update_user}> <{/if}></td>
	<td><span style="color:#FF0000"><{if $art.pub_status == 1 }>  已生成html<{/if}></span></td>
  </tr>
  <{/foreach}>
  <tr> <td colspan="13">&nbsp;&nbsp;<{$page_url}> &nbsp;&nbsp;&nbsp; 共有 <span id="total"><{$total}> </span>条记录</td>
	</tr>
  </tbody>
</table>

</body>
</html>